import request from '@/utils/request'

// 获取股票池列表
export function getStockpoolList(param) {
  return request({
    url: 'rfdeck/get_stockpool_list',
    method: 'post',
    data: param
  })
}

// 获取用户列表
export function getUserList(param) {
  return request({
    url: '/rfdeck/get_user_list',
    method: 'post',
    data: param
  })
}

// 删除股票池
export function delStockpool(param) {
  return request({
    url: 'rfdeck/del_stockpool',
    method: 'post',
    data: param
  })
}

// 新增股票池
export function createStockpool(param) {
  return request({
    url: 'rfdeck/create_stockpool',
    method: 'post',
    data: param
  })
}

// 编辑股票池
export function editStockpool(param) {
  return request({
    url: 'rfdeck/edit_stockpool',
    method: 'post',
    data: param
  })
}

// 获取股票池跟踪记录
export function getStockpoolChangeList(param) {
  return request({
    url: 'rfdeck/get_stockpool_change_list',
    method: 'post',
    data: param
  })
}

// 获取字典列表
export function getDictList(param) {
  return request({
    url: 'rfdeck/get_dict_list',
    method: 'post',
    data: param
  })
}

// 新增字典
export function addDict(param) {
  return request({
    url: 'rfdeck/add_dict',
    method: 'post',
    data: param
  })
}

// 编辑字典
export function editDict(param) {
  return request({
    url: 'rfdeck/edit_dict',
    method: 'post',
    data: param
  })
}

// 删除字典
export function delDict(param) {
  return request({
    url: 'rfdeck/del_dict',
    method: 'post',
    data: param
  })
}

// 编辑股票池日志
export function editStockpoolChangelog(param) {
  return request({
    url: 'rfdeck/edit_stockpool_changelog',
    method: 'post',
    data: param
  })
}

// 删除股票池日志
export function delStockpoolChangelog(param) {
  return request({
    url: 'rfdeck/del_stockpool_changelog',
    method: 'post',
    data: param
  })
}

// 新增股票池日志
export function addStockpoolChangelog(param) {
  return request({
    url: 'rfdeck/add_stockpool_changelog',
    method: 'post',
    data: param
  })
}

// 获取股票代码
export function searchCodeByName(param) {
  return request({
    url: 'rfdeck/search_code_by_name',
    method: 'post',
    data: param
  })
}

// 根据股票代码获取实时价格
export function getNominalPrice(param) {
  return request({
    url: 'rfdeck/get_nominal_price',
    method: 'post',
    data: param
  })
}






